package graphical;

/**
 * @Author admin
 * @Date 2019/3/20 9:25
 */
public class Facoty {
    public  Graphical getgraphical(int a){
        if (a==1){
            return new Circular("圆形");
        }
        else if (a==2){
            return new Rectangle("长方形");
        }
        else if (a==3){
            return new Triangle("三角形");
        }
        else {
            return null;
        }
    }
}
